package com.jspeed.dialogeservice;

import javax.naming.Context;
import javax.naming.InitialContext;

public class DialogeServiceLocator {

	public static DialogeService getDialogeService() {
		DialogeService dialogeService = null;
		try {
			final Context context = new InitialContext();
			//Object o = context.lookup("DialogeServiceBean/remote");
			Object o = context.lookup("app/DialogeServiceBean/remote");
			dialogeService = (DialogeService) o;
		} catch (Exception ex) {
			ex.printStackTrace();
		}
		return dialogeService;
	}
}
